/*
  ODARemote.h - 
*/
#ifndef ODARemote_h
#define ODARemote_h

#include "ODPort.h"
#include "WProgram.h"

class Remote {
  public:
    Remote();
    void init(uint8_t pinA, uint8_t pinB);
    boolean getPressA();
    boolean getPressB();
    uint8_t getCommand();
    void service();
  private:
    Port _portA;
    Port _portB;
    uint8_t _statusA;
    uint8_t _statusB;
    uint8_t _commandStatus;
    uint8_t _commandCount;
    unsigned long _lastCommand;
};

#endif